<%--
  Created by IntelliJ IDEA.
  User: Dylan
  Date: 2017/4/24
  Time: 13:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" pageEncoding="utf-8" %>
<%@ include file="/include/taglibs.jsp" %>

<script src="${path}/static/trends/trendsType/index.js"></script>
<link rel="stylesheet" href="${path}/static/taoshunda/public/public.css">
<table id="table"
       data-toggle="table"
       data-toolbar="#admintoolbar"
       data-url="${trendSelectPath}/listModule"
       data-side-pagination="server"
       data-pagination="true"
       data-page-list="[5, 10, 20, 50, 100, 200]"
       data-show-refresh="true"
       data-show-columns="true">
    <thead>
    <tr>
        <th data-field="moduleId">编号</th>
        <th data-field="content">名称</th>
        <th data-field="description">描述信息</th>
        <th data-field="money">缴纳费用</th>
        <th data-formatter="TrendsType.operateFormatter" data-events="operateEvents">操作</th>
    </tr>
    </thead>
</table>

<div id="addTrendsType-div" class="slidingmenu box-model box box-info">
    <div class="box box-info">
        <div class="box-body">
            <form role="form" action="${path}/web/trendstype/saveTrendsType" method="post" id="addTrensTypeForm"
                  data-callback="saveAdmin">
                <div class="form-group">
                    <label>类别名称:<a href="#" data-toggle="tooltip" data-placement="right"
                                   title="请认真填写类别名称">?</a></label>
                    <input type="text" class="form-control" name="typeName" id="addTypeName" data-msg="请输入类别名称"
                           placeholder="请输入类别名称" required="true" maxlength="50"/>
                </div>
            </form>
            <div class="box-footer">
                <button class="btn btn-info" data-event="submit-add">保存</button>
                &nbsp;
                <button class="btn btn-danger close-model">关闭</button>
            </div>
        </div><!-- /.box-body -->
    </div>
</div>

<div id="editTrendsType-div" class="slidingmenu box-model box box-info slidingmenu-show">
    <div class="box box-info">
        <div class="box-header">
            <h3 class='box-title'><i class='fa fa-close close-model'>&nbsp;&nbsp;</i></h3>
        </div>
        <div class="box-body">
            <form role="form" id="mergeTrendsType" action="${trendPath}/updateModule" method="post"
                  enctype="application/json">
                <input type="hidden" name="moduleId" id="editId"/>
                <div class="form-group">
                    <label>类别名称:<a href="#" data-toggle="tooltip" data-placement="right"
                                   title="请认真填写类别名称">?</a></label>
                    <input type="text" class="form-control" name="content" id="editTypeName" data-msg="请输入类别名称"
                           placeholder="请输入类别名称" required="true" maxlength="50"/>
                    <label>描述信息:<a href="#" data-toggle="tooltip" data-placement="right"
                                   title="请认真填写描述信息">?</a></label>
                    <input type="text" class="form-control" name="description" id="editDescription" data-msg="请输入描述信息"
                           placeholder="请输入描述信息" required="true" maxlength="50"/>
                    <label>缴纳费用:<a href="#" data-toggle="tooltip" data-placement="right"
                                   title="请认真填写描述信息">?</a></label>
                    <input type="number" class="form-control" name="money" id="editMoney" data-msg="请输入缴纳费用"
                           placeholder="请输入缴纳费用" required="true" maxlength="50"/>
                </div>
            </form>
            <div class="box-footer">
                <button class="btn btn-info" data-event="submit-edit">修改</button>
                &nbsp;
                <button class="btn btn-danger close-model">关闭</button>
            </div>
        </div><!-- /.box-body -->
    </div>
</div>